package com.yuyou.fn.settlement.entity;

import com.github.wens.mybatisplus.annotations.TableField;
import com.github.wens.mybatisplus.annotations.TableId;
import com.github.wens.mybatisplus.annotations.TableName;
import com.github.wens.mybatisplus.examples.Example;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * 支付订单
 *
 */
@TableName(value = "pay_order")
public class PayOrder implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	public static Example<PayOrder> createExample(){
		return new Example<PayOrder>(PayOrder.class);
	}

	/**  */
	@TableId(value = "pay_order_id")
	private Long payOrderId;

	/**  */
	@TableField(value = "bus_id")
	private Long busId;

	/** 金额 */
	private BigDecimal amount;

	/** 渠道 */
	private String channel;

	/** 0:未支付 1:支付成功 2:支付失败 */
	private Integer status;

	/** 回调返回结果 */
	@TableField(value = "callback_return_result")
	private String callbackReturnResult;

	/**  */
	@TableField(value = "create_time")
	private Date createTime;

	/** 支付主题 */
	private String subject;

	/**  */
	private String body;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;

	/** 业务类型 */
	@TableField(value = "bus_type")
	private String busType;

	@TableField(value = "charge_id")
	private String chargeId ;

	@TableField(value = "channel_transaction_no")
	private String channelTransactionNo ;

	@TableField(value = "bus_handle_time")
	private Date busHandleTime ;

	public Long getPayOrderId() {
		return this.payOrderId;
	}

	public void setPayOrderId(Long payOrderId) {
		this.payOrderId = payOrderId;
	}

	public Long getBusId() {
		return this.busId;
	}

	public void setBusId(Long busId) {
		this.busId = busId;
	}

	public BigDecimal getAmount() {
		return this.amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getChannel() {
		return this.channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getCallbackReturnResult() {
		return this.callbackReturnResult;
	}

	public void setCallbackReturnResult(String callbackReturnResult) {
		this.callbackReturnResult = callbackReturnResult;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getSubject() {
		return this.subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getBody() {
		return this.body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getBusType() {
		return this.busType;
	}

	public void setBusType(String busType) {
		this.busType = busType;
	}

	public String getChargeId() {
		return chargeId;
	}

	public void setChargeId(String chargeId) {
		this.chargeId = chargeId;
	}

	public String getChannelTransactionNo() {
		return channelTransactionNo;
	}

	public void setChannelTransactionNo(String channelTransactionNo) {
		this.channelTransactionNo = channelTransactionNo;
	}

	public Date getBusHandleTime() {
		return busHandleTime;
	}

	public void setBusHandleTime(Date busHandleTime) {
		this.busHandleTime = busHandleTime;
	}
}
